From 11b9452039000d02e0f723227dcd7afa939db33f Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 8 Jun 2008 11:08:07 +0000 Subject: [PATCH] * uniquify.el (uniquify-get-proposed-name): Handle remote files. --- lisp/uniquify.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/uniquify.el b/lisp/uniquify.el index 07772bd6cda..a5614fd269c 100644 --- a/lisp/uniquify.el +++ b/lisp/uniquify.el @@ -360,7 +360,8 @@ in `uniquify-list-buffers-directory-modes', otherwise returns nil." (setq dirname (directory-file-name dirname))) (setq n (1- n)) (push (if (zerop (length file)) ;nil or "". - (prog1 "" (setq dirname nil)) ;Could be `dirname' iso "". + (prog1 (or (file-remote-p dirname) "") + (setq dirname nil)) ;Could be `dirname' iso "". file) extra-string))) (when (zerop n) -- 2.30.2